package com.`as`.common

import android.app.Activity
import android.content.Context
import android.content.res.Resources
import android.view.Window
import android.view.WindowManager

/**
 * descrition:状态栏相关
 */
/**
 * Return the status bar's height.
 *
 */
fun Context.getStatusBarHeight(): Int {
    val resources: Resources = resources
    val resourceId = resources.getIdentifier("status_bar_height", "dimen", "android")
    return resources.getDimensionPixelSize(resourceId)
}
